﻿#ifndef CUSTOMLINEEDIT_H
#define CUSTOMLINEEDIT_H

#include "styleDefine.h"
#include <QLineEdit>

class FluLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    FluLineEdit(QWidget* parent = nullptr) {
        setFixedHeight(OBJ_FIXED_HEIGHT_NORMAL);
        setFont(gFontConsolas);

        setStyleSheet("QLineEdit {\
                            border: 1px solid #e1e1e1; \
                            border - radius: 4px; \
                            padding: 4px 8px; \
                            background-color: #f5f5f5;\
                            selection - background - color: #0078d7;\
                        }\
                        QLineEdit:hover {\
                            border: 1px solid #0078d7; \
                        }\
                        QLineEdit:focus {\
                            border: 1px solid #0078d7; \
                            background-color: #ffffff; \
                        }\
                        QLineEdit:pressed {\
                            background-color: #dcdcdc;\
                        }\
                        QLineEdit:disabled{ \
                            background-color: #ebebeb;\
                            color: #898989;\
                        }");

    }
    virtual ~FluLineEdit() {}
};

#endif // CUSTOMLINEEDIT_H
